/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.common.service.impl;

import com.icinfo.cloud.provider.common.mapper.SysPrintVersionMapper;
import com.icinfo.cloud.provider.common.model.SysPrintVersion;
import com.icinfo.cloud.provider.common.service.ISysPrintVersionService;
import com.icinfo.framework.core.service.support.MyBatisServiceSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 描述:  sys_print_version 对应的Service接口实现类.<br>
 *
 * @author framework generator
 * @date 2023年11月17日
 */
@Service
public class SysPrintVersionServiceImpl extends MyBatisServiceSupport implements ISysPrintVersionService {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(SysPrintVersionServiceImpl.class);

    @Autowired
    private SysPrintVersionMapper sysPrintVersionMapper;

    @Override
    public SysPrintVersion getCurrentVersion(String appId, String type) {
        SysPrintVersion sysPrintVersion = new SysPrintVersion();
        sysPrintVersion.setAppId(appId);
        sysPrintVersion.setType(type);
        return sysPrintVersionMapper.selectOne(sysPrintVersion);
    }
}